<?php
use Doctrine\ORM\Query\Expr;
class DoctrinextController extends ZendX_Controller_Doctrinext 
{
	public function init()
    {   
    	$this->_helper->layout()->setLayout('tmplayout');
    	 
    	$registry = Zend_Registry::getInstance();
    	$entityManager = $registry->entityManager;
    		
  		$this->model = $this->getRequest()->getParam('model');	
  		$this->qb = $entityManager->createQueryBuilder();
  		  		
    	$this->qb->select("d")
    		->from("{$this->model}", 'd');
    	//var_dump($this->qb->getDQLPart('from'));
    	
    	$this->view->model = $this->model;
    }
    
    public function statsAction()
    {
    	
    }
}

?>